<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="his" uri="http://www.trkj.com/tags/his"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/icon.css"/>">
	 <!--左滑样式-->
 <link rel="stylesheet" href="<c:url value="/css/themes/style.css"/>"/>
<link rel="stylesheet" href="<c:url value="/css/themes/luara.left.css"/>"/>
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/yzr_style.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/jl_icon.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/hwc_icons.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/lmb_style.css"/>">
<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
<!--Luara js文件-->
<script src="<c:url value="/js/jquery.luara.0.0.1.min.js"/>"></script>

<title>HIS医疗服务管理系统</title>
</head>
<style>
#aa	ul,li{
		padding: 0px;
		margin: 0px;
		list-style: none;
		text-align:center;
	}
#aa	li{
	height:30px;
}
.cc_item{
	padding-top:5px;
}
.cc_dis{
	display: none;
}

</style>

<script type="text/javascript">

	$(function(){
		$(".nav_btn").linkbutton({onClick: function(){
			var title = $(this).attr("title");
			var url = $(this).attr("url");
			
			if($("#tt").tabs("exists", title)){
				$("#tt").tabs("select", title);
			}else{
				var config = {
						title: title,
						href: url,
						closable: true
					}
				$("#tt").tabs("add", config);
			}
		}});
		
		//关闭当前
		$("#btn_close_current").linkbutton({onClick:function(){
			var tab = $('#tt').tabs('getSelected');
			var index = $('#tt').tabs('getTabIndex',tab);
			if(index != 0){
				$('#tt').tabs('close',index);
			}
		}})
		
		//关闭所有
		$("#btn_close_all").linkbutton({onClick:function(){
			var tabs = $('#tt').tabs('tabs');
			for(var i = tabs.length - 1; i > 0; i --){
				$('#tt').tabs('close',i);
			}
		}});
		
		$.getJSON("hwc_getDayWeekVO",function(data){
			
			var arr = data;
		
			for(var i=0;i<arr.length;i++){
			
				//arr[i].voWeek;
				$("#hwc_staffTableDataDay").append("<th myVoDay="+arr[i].voDay+">"+arr[i].voDay+"</th>");
				$("#hwc_staffTableDataWeek").append("<th style='border-bottom:5px solid #E0ECFF;' myVoWeek="+arr[i].voWeek+">"+arr[i].voWeek+"</th>");
			}

	
	});
	//获取ID
	var staffNo=$("#scheduling_staffNo").text();

	$.getJSON("hwc_queryShiftName",{"staffNo":staffNo},function(data){
		var arr = data;
		for(var i=6;i>=0;i--){
			if(typeof(arr[i])=="undefined"){
				arr[i] = "无班次";
			}
			$("#hwc_staffTableTd").append("<td>"+arr[i]+"</td>");
		}
	});

		
	});
</script>
<body class="easyui-layout">

<div id="tontyiStaffId" style="display:none;">${staffNo}</div>

	<!-- 标题横幅 -->
	<div data-options="region:'north'"  style="height:110px;background: url(css/themes/img/yzr_beijing4.jpg);width: 100%;">
		<h1 style="display:inline;position:relative;top:36%;right:-55%;font-size:36px;font-family:'华文行楷';color:#0066FF;">中心医院医疗管理服务系统</h1>
		<div style="display:inline;position:absolute;top:75%;right:3%;font-size:16px;font-family:'隶书';">
			欢迎您,${staffName}！
			<a id="his_cancel_btn" href="to_invalidateSession" class="easyui-linkbutton" data-options="plain:true" style="color:red;">[注销]</a>
		</div>
	</div>
	
	<!-- 导航栏  style="background:#F4F4F4;"-->
  <div data-options="region:'west',title:'工具栏',split:true,iconCls:'icon-daohang'"
		style="width: 200px;">
    	<div id="aa" class="easyui-accordion" data-options="fit:true, border: false" >
		    <div data-options="iconCls:'icon-jijiu'" title="门急症管理" style="overflow: auto">
				<ul>
					<his:fun pid="2"><li><a class="easyui-linkbutton nav_btn" url="tojl_IcManagement" data-options="plain:true,iconCls:'icon-Icguanli',fit:true" title="IC卡管理">IC卡管理</a></li></his:fun>
					<his:fun pid="61"><li><a class="easyui-linkbutton nav_btn" url="tojl_case" data-options="plain:true,iconCls:'icon-bingli',fit:true" title="病例管理">病例查询</a></li></his:fun>
					<his:fun pid="8"><li><a class="easyui-linkbutton nav_btn" url="tojl_alarm" data-options="plain:true,iconCls:'icon-baojing',fit:true" title="报警管理">报警管理</a></li></his:fun>
					<his:fun pid="4"><li><a class="easyui-linkbutton nav_btn" url="tojl_registration" data-options="plain:true,iconCls:'icon-guahao',fit:true" title="挂号管理">挂号管理</a></li></his:fun>
					<his:fun pid="5"><li><a class="easyui-linkbutton nav_btn" url="tojl_seeDoctor" data-options="plain:true,iconCls:'icon-jiuzheng',fit:true" title="就诊管理">就诊管理</a></li></his:fun>
					<his:fun pid="6"><li><a class="easyui-linkbutton nav_btn" url="tojl_begin_charge" data-options="plain:true,iconCls:'icon-shoufei',fit:true" title="收费划价">收费划价</a></li></his:fun>
					<his:fun pid="7"><li><a class="easyui-linkbutton nav_btn" url="tojl_department" data-options="plain:true,iconCls:'icon-jiancha',fit:true" title="检验管理">检验管理</a></li></his:fun>
				
				</ul>
			</div>
		    <div data-options="iconCls:'icon-chuang'" title="住院服务" style="overflow: auto">
				<ul>
					<his:fun pid="9"><li><a class="easyui-linkbutton nav_btn" url="cc_patient" data-options="plain:true,iconCls:'icon-bingren',fit:true" title="病人管理">病人管理</a></li></his:fun>
					<his:fun pid="10"><li><a class="easyui-linkbutton nav_btn" url="tocc_inhospital" data-options="plain:true,iconCls:'icon-banlizhuyuan',fit:true" title="住院办理">住院办理</a></li></his:fun>
					<his:fun pid="11"><li><a class="easyui-linkbutton nav_btn" url="cc_berth" data-options="plain:true,iconCls:'icon-chuangwei',fit:true" title="床位管理">床位管理</a></li></his:fun>
					<his:fun pid="12"><li><a class="easyui-linkbutton nav_btn" url="cc_ward" data-options="plain:true,iconCls:'icon-bingfang',fit:true" title="病房管理">病房管理</a></li></his:fun>
					<his:fun pid="13"><li><a class="easyui-linkbutton nav_btn" url="tocc_payment" data-options="plain:true,iconCls:'icon-zhuyuanjiaofei',fit:true" title="缴费管理">缴费管理</a></li></his:fun>
					<his:fun pid="62"><li><a class="easyui-linkbutton nav_btn" url="tocc_doctor_advice" data-options="plain:true,iconCls:'icon-baogao',fit:true" title="病情报告">病情报告</a></li></his:fun>
					<his:fun pid="14"><li><a class="easyui-linkbutton nav_btn" url="cc_hosp_electronic" data-options="plain:true,iconCls:'icon-dianzichufang',fit:true" title="住院处方">住院处方</a></li></his:fun>
					<his:fun pid="15"><li><a class="easyui-linkbutton nav_btn" url="tocc_arrange" data-options="plain:true,iconCls:'icon-shoushu',fit:true" title="手术管理">手术管理</a></li></his:fun>
					<his:fun pid="63"><li><a class="easyui-linkbutton nav_btn" url="tocc_patientcheck" data-options="plain:true,iconCls:'icon-zhuyuanbingli',fit:true" title="检查服务">检查服务</a></li></his:fun>
					<his:fun pid="16"><li><a class="easyui-linkbutton nav_btn" url="cc_toouthospital" data-options="plain:true,iconCls:'icon-chuyuanbanli',fit:true" title="出院办理">出院办理</a></li></his:fun>
					<his:fun pid="17"><li><a class="easyui-linkbutton nav_btn" url="tocc_casrhistory" data-options="plain:true,iconCls:'icon-zhuyuanjilu',fit:true" title="住院记录">住院记录</a></li></his:fun>
				</ul>
			</div>
		    <div title="药库管理" data-options="iconCls:'icon-yk'" style="overflow:auto;padding:0px;">
					<ul>
						<his:fun pid="18"><li><a title="药品管理" url="to_medicine" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-medicine', plain:true,fit:true">药品管理</a> </li></his:fun>
						<his:fun pid="19"><li><a title="仓库管理" url="to_storehouse" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-cangku', plain:true,fit:true">仓库管理</a> </li></his:fun>
						<his:fun pid="20"><li><a title="供应商" url="to_supplier" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-gys', plain:true,fit:true">供应商&nbsp;</a> </li></his:fun>
						<his:fun pid="21"><li><a title="制定计划" url="to_medPurchPlan" class="easyui-linkbutton nav_btn"  data-options="iconCls:'icon-cgjihua', plain:true,fit:true">制定计划</a> </li></his:fun>
						<his:fun pid="64"><li><a title="审批计划" url="to_yzrApproval" class="easyui-linkbutton nav_btn"  data-options="iconCls:'icon-shenpi', plain:true,fit:true">审批计划</a> </li></his:fun>
						<his:fun pid="22"><li><a title="药品采购" url="to_purchOrder" class="easyui-linkbutton nav_btn"  data-options="iconCls:'icon-caigou', plain:true,fit:true">药品采购</a> </li></his:fun>
						<his:fun pid="23"><li><a title="药品验收" url="to_checkMed" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-yanshou', plain:true,fit:true">药品验收</a> </li></his:fun>
						<his:fun pid="24"><li><a title="药品入库" url="to_instock" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-instock', plain:true,fit:true">药品入库</a> </li></his:fun>
						<his:fun pid="25"><li><a title="药品库存" url="to_yzrMedStore" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-stock', plain:true,fit:true">药品库存</a> </li></his:fun>
						<his:fun pid="26"><li><a title="药品盘点" url="to_yzrStorePandian" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-pandian', plain:true,fit:true">药品盘点</a> </li></his:fun>
						<his:fun pid="27"><li><a title="药品提领" url="to_yzrDraw" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-pick', plain:true,fit:true">药品提领</a> </li></his:fun>
			
						<his:fun pid="30"><li><a title="药品出库" url="to_outstockYzr" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-outstock', plain:true,fit:true">药品出库</a></li></his:fun>					
					</ul>
		    </div>
		    <div title="药房管理" data-options="iconCls:'icon-yf'" style="overflow:auto;padding:0px;">
				<ul>
					<his:fun pid="31"><li><a title="药房管理" url="to_pharmacy" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-yf', plain:true">药房管理</a> </li></his:fun>
					<his:fun pid="33"><li><a title="药房库存" url="to_pharStoreYzr" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-stock', plain:true">药房库存</a> </li></his:fun>
					<his:fun pid="35"><li><a title="药房领药" url="to_pickYzr" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-pick', plain:true">药房领药</a> </li></his:fun>
					<his:fun pid="36"><li><a title="药房发药" url="to_grantMedYzr" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-linyao', plain:true">药房发药</a> </li></his:fun>
					
				</ul>
		    </div>
		    <div title="耗材管理" data-options="iconCls:'icon-lmb_hcgl'" style="overflow:auto;">
				<ul>
					<his:fun pid="39"><li><a title="耗材管理" url="to_lmb_hcgl" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcgl', plain:true,fit:true">耗材管理</a></li></his:fun>
					<his:fun pid="40"><li><a title="耗材计划" url="to_lmb_hcj" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hccgjh', plain:true,fit:true">采购计划</a></li></his:fun>
					<his:fun pid="41"><li><a title="耗材审批" url="to_lmb_hcsp" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcsp', plain:true,fit:true">审批计划</a></li></his:fun>
					<his:fun pid="42"><li><a title="耗材采购" url="to_lmb_hc"  class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hccg', plain:true,fit:true">耗材采购</a></li></his:fun>
					<his:fun pid="43"><li><a title="耗材验收" url="to_lmb_hcys"  class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcys', plain:true,fit:true">耗材验收</a></li></his:fun>
					<his:fun pid="44"><li><a title="耗材入库" url="to_lmb_hr"  class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcrk', plain:true,fit:true">耗材入库</a></li></his:fun>
					<his:fun pid="45"><li><a title="耗材领用" url="to_lmb_hl"  class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcly', plain:true,fit:true">耗材领用</a></li></his:fun>
					<his:fun pid="46"><li><a title="领用审批" url="to_lmb_hclysp" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcsp', plain:true,fit:true">领用审批</a></li></his:fun>
					<his:fun pid="47"><li><a title="耗材出库" url="toLmbHcck" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcck', plain:true,fit:true">耗材出库</a></li></his:fun>
					<his:fun pid="65"><li><a title="耗材库存" url="toLmbHckucun" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcbs', plain:true,fit:true">耗材库存</a></li></his:fun>
					<his:fun pid="66"><li><a title="耗材盘点" url="toLmbHcpd" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcpd', plain:true,fit:true">耗材盘点</a></li></his:fun>
					<his:fun pid="67"><li><a title="耗材损溢" url="toLmbHcsy" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcbs', plain:true,fit:true">耗材损溢</a></li></his:fun>
					<his:fun pid="68"><li><a title="耗材调拨" url="toLmbHcDiaobo" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-lmb_hcdb', plain:true,fit:true">耗材调拨</a></li></his:fun>
			</ul>
		    </div>

		    
		    <!-- 后台管理 -->
		    <div title="后台管理" data-options="iconCls:'icon-hwc_background'" syle="overflow:auto;padding:10px;">
		    	<ul>
		    	
		    		<his:fun pid="57"><li><a title="人员管理" url="toStaff" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-hwc_staff', plain:true,fit:true">人员管理</a></li></his:fun>
		    		<his:fun pid="58"><li><a title="科室管理" url="toDepartment" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-hwc_dept', plain:true,fit:true">科室管理</a></li></his:fun>
		    		<his:fun pid="59"><li><a title="权限管理" url="hwc_toPower" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-hwc_power', plain:true,fit:true">权限管理</a></li></his:fun>
		    		<his:fun pid="60"><li><a title="排班管理" url="to_hwcScheduling" class="easyui-linkbutton nav_btn" data-options="iconCls:'icon-hwc_scheduling', plain:true,fit:true">排班管理</a></li></his:fun>
		    	</ul>
		    </div>
		</div>
    </div>
   
    <!-- 主体 -->
    <div data-options="region:'center'">
    	<div id="tt" class="easyui-tabs" data-options="fit:true, border:false, tools: '#tab-tools'">
		    <div title="首页" style="padding:20px;display:none;background: #D5E8EE;">
				
				<!-- 排班表 -->
				<div	style="display:inline;">
					<div id="hwc_staffTableDIV" style="width:700px;display:inline;text-align:center;">
						<!-- 天气插件 -->
						<div style="float:right">
						<!-- <iframe width="130" scrolling="no" height="120" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=4&color=%23002060&bgc=%23&icon=1&wind=1&num=1"></iframe>
						</iframe> -->
						<!-- <iframe width="300" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&color=%23FF0000&icon=5&py=hetangqu&num=2"></iframe>
						 -->
						 <iframe width="200" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&color=%23FF0000&icon=5&py=hetangqu&num=1"></iframe>
						</div>
						<table id="hwc_staffTableData" style="font-size:5px;">
							<thead>
								<tr id="hwc_staffTableDataDay">	<th id="staffName" rowspan="2" style="border-right:5px solid #E0ECFF; border-bottom:5px solid #E0ECFF;">姓名</th></tr>
								<tr id="hwc_staffTableDataWeek">	</tr>
							</thead>
							<tbody id="hwc_staffTableBody">
								<tr id="hwc_staffTableTd">
									<td><div>${staffName}</div></td>
								</tr>
							</tbody>
						</table>
						
						
						
					</div>	
					
					
					<!-- 获得员工编号 -->
					<div id="scheduling_staffNo" style="display:none;" >${staffNo}</div>
				</div>
				<table>
					<tr>
						<td><h2 style='display:block;font-family:华文行楷;width:19px;line-height:43px;height:30px;font-size: 36px;position:relative;top: -130px;left:15px;color:red;'>
							以人为本科技兴院</h2></td>
						<td><div id="cc_lunbo" class="example2" style="
									position:relative;
									top: 30px;
									left:24%;
								">
						        <ul class="cc_lunbo_ul">
						            <li class="cc_lunbo_li"><img src="css/themes/img/lunbo5.jpg" alt="1"/></li>
						            <li class="cc_lunbo_li"><img src="css/themes/img/lunbo6.jpg" alt="2"/></li>
						            <li class="cc_lunbo_li"><img src="css/themes/img/lunbo7.jpg" alt="3"/></li>
						            <li class="cc_lunbo_li"><img src="css/themes/img/lunbo4.jpg" alt="4"/></li>
						        </ul>
						        <ol class="cc_lunbo_ol">
						            <li class="cc_lunbo_ol_li"></li>
						            <li class="cc_lunbo_ol_li"></li>
						            <li class="cc_lunbo_ol_li"></li>
						            <li class="cc_lunbo_ol_li"></li>
						        </ol>
	   						 </div>
	   					</td>
						<td><h2 style='display:block;font-family:华文行楷;width:19px;line-height:43px;height:30px;font-size: 36px;position:relative;top: -130px;left:212px;color:red;'>
							德技双馨服务至上</h2></td>
					</tr>
				</table>
	
	
    
    <!--Luara图片切换骨架end-->
    <script>
        $(function(){
            <!--调用Luara示例-->
            $(".example2").luara({width:"500",height:"334",interval:4500,selected:"seleted",deriction:"left"});

        });
    </script>
		    </div>
		</div>
		
		<div id="tab-tools" style="border:none;border-bottom: 1px solid rgb(149,184,231);">
			<a id="btn_close_current" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-remove"></a>
			<a id="btn_close_all" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel"></a>
		</div>
		
    </div>    
</body>
</html>